"use strict";

const path = require("path");
const expect = require("chai").expect;
const FormatService = require(path.join(__dirname,
                                        "..",
                                        "..",
                                        "src",
                                        "services",
                                        "FormatService.js"));

/** @test {FormatService} */
describe("FormatService", function() {
  let subject = new FormatService();

  /** @test {FormatService#constructor} */
  it("#constructor", function() {
    expect(subject).to.be.instanceof(FormatService);
  });

  /** @test {FormatService#pascalize} */
  it("#pascalize", function() {
    expect(subject.pascalize("adb")).to.equal("Adb");
    expect(subject.pascalize("adbAdb")).to.equal("AdbAdb");
    expect(subject.pascalize("adb-adb")).to.equal("AdbAdb");
    expect(subject.pascalize("adb adb")).to.equal("AdbAdb");
  });
});
